package 华为.text11_数字颠倒;


import java.util.Scanner;

/**
 * 输入一个整数，将这个整数以字符串的形式逆序输出
 * 程序不考虑负数的情况，若数字含有0，则逆序形式也含有0，如输入为100，则输出为001
 *
 * 数据范围：0<= n<=2^30-1
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int value = scanner.nextInt();
        int orign=value;
        StringBuilder stringBuilder = new StringBuilder();
        while (value!=0){
            int i = value % 10;
            stringBuilder.append(i);
            value=value/10;
        }
        if (orign==0){
            System.out.println("0");
        }else {
        System.out.println(stringBuilder.toString());
        }
    }
}
